<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>
    <table>
        <tr>
            <td class="alignRight"><?php echo Yii::t('BackEnd','Code'); ?>: </td>
            <td>
                <?php echo $form->textField($model,'code',array('maxlength'=>45));?>
            </td>
            <td class="alignRight"><?php echo Yii::t('BackEnd','Title'); ?>: </td>
            <td>
                <?php echo $form->textField($model,'title',array('maxlength'=>255)); ?>
            </td>
            <td class="alignRight"><?php echo Yii::t('BackEnd','Sender'); ?>: </td>
            <td>
                <?php echo $form->textField($model,'from',array('maxlength'=>255)); ?>
            </td>
        </tr> 
        <tr>
            <td class="alignRight"><?php echo Yii::t('BackEnd','Subject'); ?>: </td>
            <td><?php echo $form->textField($model,'subject',array('maxlength'=>255)); ?></td>
            <td class="alignRight"><?php echo Yii::t('BackEnd','Body'); ?>: </td>
            <td><?php echo $form->textField($model,'body'); ?></td>
            <td class="alignRight"><?php echo Yii::t('BackEnd','Status'); ?>: </td>
            <td><?php echo $form->dropDownList($model,'status',Lvc::statusArray(Yii::t('BackEnd', '-- All --'))); ?></td>
            <td><?php echo CHtml::submitButton(Yii::t('Global', 'Search')); ?></td>
        </tr>
    </table>
<?php $this->endWidget(); ?>

</div><!-- search-form -->